package com.ad.sponsor.service;

import com.ad.common.annotation.IgnoreResponseAdvice;
import com.ad.common.exception.AdException;
import com.ad.common.vo.AdPlan;
import com.ad.common.vo.AdPlanGetRequest;
import com.ad.sponsor.vo.AdPlanRequest;
import com.ad.sponsor.vo.AdPlanResponse;

import java.util.List;

/**
 * @author: megan
 * @mail: meganmail@vip.qq.com
 * @date: 2019/3/28 16:52
 * @version: v1.0
 * @description:
 */
public interface IAdPlanService {

    /**
     * <h2>创建推广计划</h2>
     */
    AdPlanResponse createAdPlan(AdPlanRequest request) throws AdException;

    /**
     * <h2>获取推广计划</h2>
     */
    List<AdPlan> getAdPlanByIds(AdPlanGetRequest request) throws AdException;

    /**
     * <h2>更新推广计划</h2>
     */
    AdPlanResponse updateAdPlan(AdPlanRequest request) throws AdException;

    /**
     * <h2>删除推广计划</h2>
     */
    void deleteAdPlan(AdPlanRequest request) throws AdException;

}
